PROJECT(edm)

#表示头文件列表的变量
FILE(GLOB INCS "./*.h")

#表示源文件列表的变量
FILE(GLOB SRCS "./*.cpp")

#设置变量${COMMON_SRCS}
SET(NETWORK_SRCS
    ${SRCS}
    )

#包含目录
INCLUDE_DIRECTORIES(
	../common
	/usr/local/include/boost)

#是debug编译还是release编译
OPTION(MYPROJECT_DEBUG
  "Build the project using debugging code"
  ON)
IF(MYPROJECT_DEBUG)
	SET(CMAKE_BUILD_TYPE "Debug")
ELSE(MYPROJECT_DEBUG)
	SET(CMAKE_BUILD_TYPE "Release")
ENDIF(MYPROJECT_DEBUG)

#添加宏
ADD_DEFINITIONS(-Wall)

ADD_LIBRARY(network STATIC ${NETWORK_SRCS})
SET_TARGET_PROPERTIES(network PROPERTIES LINKER_LANGUAGE C)

#设置make install目录
#FILE(GLOB files "inc/*.h")
#FILE(GLOB hppfiles "inc/*.hpp")
